home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.12 Dec 96 / Async I⁄O Code / Sources / ResorcererDialogLib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-24  |  1.3 KB  |  56 lines  |  [TEXT/CWIE]

  1. #ifndef __RESORCERERDIALOGLIB__
  2. #define __RESORCERERDIALOGLIB__
  3.  
  4. #ifndef __TYPES__
  5.     #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __QUICKDRAW__
  9.     #include <Quickdraw.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13.     #include <Windows.h>
  14. #endif
  15.  
  16. #include <StdArg.h>
  17.  
  18. void    CenterWindow(WindowPtr w, int top);
  19. long    strlen(char *);
  20. char   *strcpy(char *dst, char *src);
  21. char   *PascalToC(char *pstr);
  22. char   *CToPascal(char *cstr);
  23. void    PutDlgString(DialogPtr dlog, int item, char *str, int sel);
  24. void    PutDlgWord(DialogPtr dlog, int item, int val, int sel);
  25. void    PutDlgLong(DialogPtr dlog, int item, long val, int sel);
  26. void    PutDlgChkRadio(DialogPtr dlog, int item, int val);
  27. int     GetDlgString(DialogPtr dlog, int item, char *str);
  28. int     GetDlgWord(DialogPtr dlog, int item, short *val);
  29. int     GetDlgLong(DialogPtr dlog, int item, long *val);
  30. int     GetDlgChkRadio(DialogPtr dlog, int item);
  31. int     TextSelected(DialogPtr dlog);
  32. OSType  CanPaste(int n, ...);
  33. void    FrameDefault(DialogPtr dlog, int item, int frame);
  34. void    GetDlgPanel(DialogPtr dlog, int item, Rect *panel);
  35.  
  36. #ifndef ENTERkey
  37. #define ENTERkey    0x3
  38. #endif
  39. #ifndef DELETEkey
  40. #define DELETEkey    0x8
  41. #endif
  42. #ifndef NIL
  43. #define NIL ((void *)0)
  44. #endif
  45. #ifndef TRUE
  46. #define TRUE 1
  47. #endif
  48. #ifndef FALSE
  49. #define FALSE 0
  50. #endif
  51. #ifndef FRONT_WINDOW
  52. #define FRONT_WINDOW  ((WindowPtr) (-1L))
  53. #endif
  54.  
  55. #endif
  56.